package com.woniu.dao;

import com.woniu.pojo.UserLogs;
import org.apache.ibatis.annotations.Delete;

import java.util.Date;

public interface UserLogsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserLogs record);

    int insertSelective(UserLogs record);

    UserLogs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserLogs record);

    int updateByPrimaryKey(UserLogs record);


    @Delete("delete from userLogs where create_time <= #{value}")
    int clearLog(Date time);
}